package com.community.body.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * @author Mi Pro
 */
public class PersonnelDifferentiationDTO {
    private Long userId;
    private String userName;
    private Long deptId;
    private String deptName;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long communityId;
    private String communityName;

    public PersonnelDifferentiationDTO() {
    }

    public PersonnelDifferentiationDTO(Long userId, String userName, Long deptId, String deptName, Long communityId, String communityName) {
        this.userId = userId;
        this.userName = userName;
        this.deptId = deptId;
        this.deptName = deptName;
        this.communityId = communityId;
        this.communityName = communityName;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Long getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Long communityId) {
        this.communityId = communityId;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    @Override
    public String toString() {
        return "PersonnelDifferentiationDTO{" + "userId=" + userId + ", userName='" + userName + '\'' + ", deptId=" + deptId + ", deptName='" + deptName + '\'' + ", communityId=" + communityId + ", communityName='" + communityName + '\'' + '}';
    }
}
